package com.kj.tms.common.utils.calx.util;

import java.util.HashMap;
import java.util.Map;

/**
 * @ProjectName: ledger
 * @Package: com.hongtu.tms.ledger.calx.factory
 * @ClassName: Symbols
 * @Description: [BNF文法非终结符]
 * @Author: [zhuyongjie]
 * @CreateDate: 2018/4/11 15:46
 * @UpdateUser: []
 * @UpdateDate: 2018/4/11 15:46
 * @UpdateRemark: []
 * @Version: 1.0
 * Copyright: 北京宏图天安 Copyright (c) 2018
 */
public class Symbols {
    private Map<String,Integer> symbols;

    public Symbols() {
        this.symbols = new HashMap<String, Integer>();
        this.symbols.put("error",2);
        this.symbols.put("expressions",3);
        this.symbols.put("e",4);
        this.symbols.put("EOF",5);
        this.symbols.put("variableSequence",6);
        this.symbols.put("TRUE",7);
        this.symbols.put("FALSE",8);
        this.symbols.put("NULL",9);
        this.symbols.put("TIME_AMPM",10);
        this.symbols.put("TIME_24",11);
        this.symbols.put("number",12);
        this.symbols.put("STRING",13);
        this.symbols.put("&",14);
        this.symbols.put("=",15);
        this.symbols.put("+",16);
        this.symbols.put("(",17);
        this.symbols.put(")",18);
        this.symbols.put("[",19);
        this.symbols.put("expseq",20);
        this.symbols.put("]",21);
        this.symbols.put("<",22);
        this.symbols.put(">",23);
        this.symbols.put("NOT",24);
        this.symbols.put("-",25);
        this.symbols.put("*",26);
        this.symbols.put("/",27);
        this.symbols.put("^",28);
        this.symbols.put("E",29);
        this.symbols.put("FUNCTION",30);
        this.symbols.put("cell",31);
        this.symbols.put("FIXEDCELL",32);
        this.symbols.put(":",33);
        this.symbols.put("CELL",34);
        this.symbols.put("SHEET",35);
        this.symbols.put("!",36);
        this.symbols.put("RANGE",37);
        this.symbols.put(";",38);
        this.symbols.put(",",39);
        this.symbols.put("VARIABLE",40);
        this.symbols.put("DECIMAL",41);
        this.symbols.put("NUMBER",42);
        this.symbols.put("%",43);
        this.symbols.put("#",44);
        this.symbols.put("$accept",0);
        this.symbols.put("$end",1);
    }

    public Map<String, Integer> getSymbols() {
        return symbols;
    }

    public void setSymbols(Map<String, Integer> symbols) {
        this.symbols = symbols;
    }
}
